<?php

require_once __DIR__ . '/../../../../vendor/autoload.php';

use Nece\Sdk\Coze\Client;

class Bootstrap{
    static $client;

    // static $bot_id = ''; // 智能体ID
    // static $conversation_id = ''; // 会话ID
    // static $client_id = ''; // 替换为实际的应用ID
    // static $client_secret = ''; // 替换为实际的公钥指纹
    // static $private_key = ''; // 替换为实际的私钥内容

    static $bot_id = '7356170928495231015'; // 智能体ID
    static $conversation_id = '7495664023686447156'; // 会话ID
    static $client_id = '1159548130908'; // 替换为实际的应用ID
    static $client_secret = 'b4wP3jy0mtm5aPqJd8p92uklsVpEwvi-Ljt6NdRO9wQ'; // 替换为实际的公钥指纹
    static $private_key = '-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC3pC6MOYGgiFf3
RlIoioyYJWtq395jA1mK+mF+izCdVhYkjKgup+VgiKOD9aD10hsosSOwwbG8Hvcw
VWfqa6f4/KYvTtJBgqgAQQ9lCO0gy0pAd7xdw62k3n080dJ+Gk7oYrzGQ0RGNkrA
4z1wiMMs82/4Lir+egV9TfZz3znzLVUykhbSUFnAFY7GhYNOS9wuHswSKggSQi7P
rUu5JVM6WY4OWK+19Se49tiu7C+cd8HLDfjeaM8GA2nfD1j8R2aorQLipFg0sxxG
mxhGjZdzr/6ew48s5+0+6CFAZLwo/ISp8Ut69o8Rc1FhW7DYSk006B4nWxB0CUri
6JIHs92zAgMBAAECggEADQn6kB1tvlxiOpBQpxGwd+ETuLmjp/KqgxatfJv4kvor
GAhniA49xdYyZyZanmdah72NP1U1/+K91GJMB9qUJMjzl8W/GOkbTOp2Pzj3vm2j
Cix/ZPzzaFvUYFC1B9LXPFCHkWA75TV8OQPgXDC8AvPFaaEFj56bNXYCqLvR1D5l
9T2/PZYUlUmcg0+kWiFqqSpjnctQNWzbxgATjxt27Qit4km0cP/xLhwBu4L1wpTp
nxuAbXuNKyMR9g4r2OevM92yc3BrnuwEBdrYowmFcajJM0KHdHClrGRbzUA8LI72
kAFGNYz5hjNzTx6OYP/zNKqtjDKuB7Y0CyPX5KCdkQKBgQDgSAsGZJs30LzirQ/m
bvrbCebHHcSdHLPq22zM1oC7mLe+5+pZUzzZ+3ZisKfE36O5avNm4UM776XIQ9a1
qvie2mHQWozuyh+OAnJiHs06zcR7WVCpp253+H5T2X9DaoXVNOSQBOid/e78HIR8
cRr2fHN02qNYqVLqsmBTjrck+QKBgQDRnMrE095GPYEEWv9JUzjRNw4EBGbJAHv5
ToIY/tk7XBViXyyJ72M7ny2mDDf5+3gLZGtrqvyztGsStcU63RxRbD04zb1RUxTa
A13WNDUfyq5L+pKd1rPGh6a9hiybKcpFGXd/HJEJvqNhbWLcLwEleMtOS9EpXD7R
elA6rJw/CwKBgGhd/gtmi7hogU02XXzMzh1ZuTOVTaYS8kJrA3E6rEMf6PmEcFBK
5LlHRCreq+N4cnbZJxUL5D6i4VGVB/gX7IP3eab8TDLeidqKlvHEBZrEoBcKU/fu
uwBG+XpJbuhPTKIPcAD418qVnT1ig+BovbRP62ZIS9T5TmV6xkp70gv5AoGAE2RN
Af6Tzq279NoySedQF1LfkhGSLMBFt9/Ce2uAT1SKiepCJZSm+ooUYAs7Vn4kMfGd
Wn2cGUf0q+tzDqoMB6Ba3ZlzDUYBZNXw5XM5AvLuQwswazfEs/Yyv8/c6pHoK5Ja
ksDiziL73HSRM8uJcJ0HOfwbopbtHNYS/Aqh/dcCgYEAyUhtNEIjv+1KTxfdL5i3
sq8a0CbVHBr+iFqLB2w0bJBCEudZdsTHjv3koGxvFStRTJeQWAiz89VfEE6gWS6A
oOaXufOJZRXHEDIiOcn5vQc+AWjxmu4MAhUzlJKmRbKMO83h9TgGMR9PYP4kOXEp
+hHWoaLmr26PsbaC7ZjM1Z4=
-----END PRIVATE KEY-----'; // 替换为实际的私钥内容

    /**
     * 获取Coze SDK客户端实例
     * 
     * @return Client
     */
    public static function getCozeClient() {
        if (self::$client === null) {
            self::$client = new Client(self::$client_id, self::$client_secret, self::$private_key);
        }
        return self::$client;
    }
}